"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var router_1 = require("@angular/router");
var login_component_1 = require("./login/login.component");
var forgetPsd_component_1 = require("./forgetPsd/forgetPsd.component");
var index_component_1 = require("./index/index.component");
var make_component_1 = require("./make/make.component");
// import {NewsComponent} from "./news/news.component";
var partner_component_1 = require("./partner/partner.component");
var about_component_1 = require("./about/about.component");
var register_component_1 = require("./register/register.component");
var news_list_component_1 = require("./news-list/news-list.component");
var news_detail_component_1 = require("./news-detail/news-detail.component");
var minapp_index_component_1 = require("./minapp-index/minapp-index.component");
var routes = [
    // {
    //   path: '',
    //   component: IndexComponent,
    //   children: [
    //     {path: 'index', component: Index2Component},
    //     {path: 'make', component: MakeComponent},
    //     {path: 'partner', component: PartnerComponent},
    //     {path: 'news', component: NewsComponent},
    //     {path: 'news-detail', component: NewsDetailComponent},
    //     {path: 'about', component: AboutComponent},
    //     {path: 'register', component: RegisterComponent},
    //     {path: '', component: Index2Component}
    //   ]
    // },
    { path: 'login', component: login_component_1.LoginComponent },
    { path: 'forgetPsd', component: forgetPsd_component_1.forgetPsdComponent },
    { path: 'index', component: index_component_1.Index2Component },
    { path: 'make', component: make_component_1.MakeComponent },
    { path: 'partner', component: partner_component_1.PartnerComponent },
    // {path: 'news/:id', component: NewsComponent},
    { path: 'news-list', component: news_list_component_1.NewsListComponent },
    { path: 'news-detail/:id', component: news_detail_component_1.NewsDetailComponent },
    { path: 'about', component: about_component_1.AboutComponent },
    { path: 'register', component: register_component_1.RegisterComponent },
    { path: 'minapp-index', component: minapp_index_component_1.MinappIndexComponent }
];
var IndexRoutingModule = /** @class */ (function () {
    function IndexRoutingModule() {
    }
    IndexRoutingModule = __decorate([
        core_1.NgModule({
            imports: [
                router_1.RouterModule.forChild(routes)
            ],
            exports: [
                router_1.RouterModule
            ],
            providers: []
        })
    ], IndexRoutingModule);
    return IndexRoutingModule;
}());
exports.IndexRoutingModule = IndexRoutingModule;
